package org.dromara.system.service.impl;

import java.util.List;

import org.dromara.common.core.utils.DateUtils;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.dromara.system.mapper.AssetsMytokenactionrecordMapper;
import org.dromara.system.domain.AssetsMytokenactionrecord;
import org.dromara.system.service.IAssetsMytokenactionrecordService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2023-01-29
 */
@Service
public class AssetsMytokenactionrecordServiceImpl implements IAssetsMytokenactionrecordService
{
    @Autowired
    private AssetsMytokenactionrecordMapper assetsMytokenactionrecordMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public AssetsMytokenactionrecord selectAssetsMytokenactionrecordById(Long id)
    {
        return assetsMytokenactionrecordMapper.selectAssetsMytokenactionrecordById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param assetsMytokenactionrecord 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    @DS("assets")
    public List<AssetsMytokenactionrecord> selectAssetsMytokenactionrecordList(AssetsMytokenactionrecord assetsMytokenactionrecord)
    {
        return assetsMytokenactionrecordMapper.selectAssetsMytokenactionrecordList(assetsMytokenactionrecord);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param assetsMytokenactionrecord 【请填写功能名称】
     * @return 结果
     */
    @Override
    @DS("assets")
    public int insertAssetsMytokenactionrecord(AssetsMytokenactionrecord assetsMytokenactionrecord)
    {
        assetsMytokenactionrecord.setCreateTime(DateUtils.getNowDate());
        return assetsMytokenactionrecordMapper.insertAssetsMytokenactionrecord(assetsMytokenactionrecord);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param assetsMytokenactionrecord 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateAssetsMytokenactionrecord(AssetsMytokenactionrecord assetsMytokenactionrecord)
    {
        assetsMytokenactionrecord.setUpdateTime(DateUtils.getNowDate());
        return assetsMytokenactionrecordMapper.updateAssetsMytokenactionrecord(assetsMytokenactionrecord);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAssetsMytokenactionrecordByIds(Long[] ids)
    {
        return assetsMytokenactionrecordMapper.deleteAssetsMytokenactionrecordByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteAssetsMytokenactionrecordById(Long id)
    {
        return assetsMytokenactionrecordMapper.deleteAssetsMytokenactionrecordById(id);
    }
}
